package com.qianxun.module.datasource1.admin.service;

import com.qianxun.module.datasource1.admin.entity.SysUserFunctionRoleRelation;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* com.zch.admin.base.entity.SysAdminFnroleUserRelation模型业务接口
* @author: admin
* @date: 2019-11-28
* @version: 1.0.0
*/
public interface SysUserFunctionRoleRelationService extends IService<SysUserFunctionRoleRelation> {

    /**
     * 设置用户功能角色
     * @param userUuid 用户的uuid
     * @param fnRoleIds 功能角色id
     */
    void setAuthority(String userUuid, Integer[] fnRoleIds);

    /**
     * 删除指定用户uuid的信息
     * @param uuid 用户uuid
     */
    void removeByUserUuid(String uuid);

    /**
     * 获取指定用户的功能角色id
     * @param userUuid 用户uuid
     * @return
     */
    List<Integer> getFunctionRoleIdByUserUuid(String userUuid);
}